import {tableOptBtnConfig} from "../table";
import {entityType_asset} from "@/config/common";

export default {
  "tableId": "attribute",
  "name": "属性管理",
  "columns": [
    {
      label: '属性名称',
      children: [
        {
          key: 'name',
        },
      ]
    },
    {
      label: '实现版本',
      children: [
        {
          key: 'version',
        },
      ],
    },
    {
      label: '实体类型',
      children: [
        {
          key: 'entityTypeText',
        },
      ]
    },
    {
      label: '属性归属',
      children: [
        {
          key: 'attributeTypeText',
        }
      ],
    },
    {
      label: '关联事件',
      children: [
        {
          key: 'relatedEvent',
        }
      ],
    },
    {
      label: '关联服务',
      children: [
        {
          key: 'relatedService',
        }
      ],
    },
    {
      label: '备注',
      children: [
        {
          key: 'remarks',
        }
      ],
    },
    {
      label: '更新时间',
      width: 100,
      children: [
        {
          updatedDate: true
        }
      ],
    },
    {
      "label": "操作",
      "operation": true,
      "width": 220,
      "children": [
        {
          "button": true,
          type: tableOptBtnConfig.detail.type
        },
        {
          "button": true,
          type: tableOptBtnConfig.edit.type,
        },
        {
          "button": true,
          type: tableOptBtnConfig.delete.type,
          class: 'hover-danger',
        }
      ]
    }
  ],
  "filters": [
    {
      "fieldType": "string",
      key: 'entityType',
      label: '实体类型',
      options:entityType_asset
    },

    {
      "fieldType": "input",
      key: 'name',
      label: '属性名称',
    },
    {
      "fieldType": "input",
      key: 'version',
      label: '实现版本',
    },
  ]
}
